package vip.sweet.biz.modular.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import vip.sweet.biz.modular.order.enums.OrderStatusType;

import java.sql.Date;

/**
 * @author ASUS
 * @Date 2025/10/4 18:56
 * @Descripition
 */
@TableName("biz_orders")
@Schema(description = "业务逻辑订单实体类")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BizOrders {
    @Schema(description = "订单ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "用户ID")
    private String userId;
    @Schema(description = "订单总金额")
    private Double totalAmount;
    @Schema(description = "订单状态")
    private String status;
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "支付时间")
    private Date paidAt;
    @Schema(description = "发货时间")
    private Date shippedAt;
    @Schema(description = "完成时间")
    private Date deliveredAt;
    @Schema(description = "收货地址ID")
    private String shippingAddressId;
}
